import http from '@/request/request'

// 获取用户信息
export function getCampusList() {
    return http({
        url: '/campus/',
        method: 'get',
    })
}


export function getCampusListByRole() {
    return http({
        url: '/campus/listByRole',
        method: 'get',
    })
}

export function add(campusInfo) {
    return http({
        url: '/campus/add',
        method: 'post',
        data:campusInfo
    })
}

export function update(campusInfo) {
    return http({
        url: '/campus/update',
        method: 'post',
        data:campusInfo
    })
}

export function delById(campusId) {
    return http({
        url: `/campus/del?campusId=${campusId}`,
        method: 'get',
    })
}
